package proxypattern.base;

import java.rmi.RemoteException;

/**
 * @author yaojianfeng
 */
public interface IGumballMachineRemote extends BaseRemote {
    /**
     * 获取糖果机中糖果的数量
     * @return int 存量糖果数据
     * @throws RemoteException 远程异常
     */
    public int getCount() throws RemoteException;

    /**
     * 获取糖果机的位置
     * @return 位置
     * @throws RemoteException 远程调用异常
     */
    public String getLocation() throws RemoteException;

    /***
     * 获取糖果机状态
     * @return 状态
     * @throws RemoteException 远程调用异常
     */
    public BaseState getState() throws RemoteException;
}
